package com.ge.util.commons.clouds.test;

import java.util.List;

import com.ge.util.JTools;

public class Student {

	public String strName = null;
	
	public String strAddress = null;
	
	public String strMemo = null;
	
	public String toString() {
		return strName+","+strAddress+","+strMemo;
	}
	
	public static Student parse(String strData) {
		List arr = JTools.parseString(strData, ',');
		if (arr.size() < 3) {
			return null;
		}
		Student m = new Student();
		m.strName = (String)arr.get(0);
		m.strAddress = (String)arr.get(1);
		m.strMemo = (String)arr.get(2);
		
		return m;
	}
}
